<?php
$id=$_GET['id'];
$filename="$id.html";
if(file_exists($filename))
{
    echo "静态化";
    include $filename;
}
else
{
    if(file_exists($filename))
    {
        unlink($filename);
    }
    $dbh=new PDO('mysql:host=localhost;dbname=gaofei','root','root');
    $sql='select * from memberadd where id='.$id;
    ob_start();
    $arr=$dbh->query($sql)->fetch(PDO::FETCH_ASSOC);
    include "moban.php";
    file_put_contents($filename,ob_get_clean());
    include $filename;
}